import { LayoutComponent } from '../layout/layout.component';
import { AuthGuard } from '../core/auth/auth.guard';

export const routes = [
    {
        path: '',
        component: LayoutComponent,
        canActivate: [AuthGuard],
        children: [
            { path: '', redirectTo: 'member/center', pathMatch: 'full' },
            { path: 'member/center', loadChildren: './member-center/member-center.module#MemberCenterModule' },
            { path: 'act', loadChildren: './member-act/member-menu-center.module#MemberMenuCenterModule' },
            // // { path: 'theme', loadChildren: './theme/theme.module#ThemeModule' , data: { title: '主页'}},
            { path: 'billing', loadChildren: './billing/billing.module#BillingModule' },
            // { path: 'account', loadChildren: './account/account.module#AccountModule' },
            { path: 'member/transfer', loadChildren: './transfer/transfer.module#TransferModule' },
            { path: 'member/recharge', loadChildren: './recharge/recharge.module#RechargeModule' },
        ]
    },
    { path: 'pay', loadChildren: './pay/pay.module#PayModule' },
    { 
        path: 'static',
        loadChildren: './static/static.module#StaticModule'
    },
    {
        path: 'pages',
        loadChildren: './pages/pages.module#PagesModule',
    },
    {
        path: '**',
        redirectTo: ''
    }
];


